package com.ruoyi.smile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.smile.mapper.McUserMapper;
import com.ruoyi.smile.domain.McUser;
import com.ruoyi.smile.service.IMcUserService;

/**
 * 用户2Service业务层处理
 * 
 * @author xin
 * @date 2025-03-18
 */
@Service
public class McUserServiceImpl implements IMcUserService 
{
    @Autowired
    private McUserMapper mcUserMapper;

    /**
     * 查询用户2
     * 
     * @param id 用户2主键
     * @return 用户2
     */
    @Override
    public McUser selectMcUserById(Long id)
    {
        return mcUserMapper.selectMcUserById(id);
    }

    /**
     * 查询用户2列表
     * 
     * @param mcUser 用户2
     * @return 用户2
     */
    @Override
    public List<McUser> selectMcUserList(McUser mcUser)
    {
        return mcUserMapper.selectMcUserList(mcUser);
    }

    /**
     * 新增用户2
     * 
     * @param mcUser 用户2
     * @return 结果
     */
    @Override
    public int insertMcUser(McUser mcUser)
    {
        return mcUserMapper.insertMcUser(mcUser);
    }

    /**
     * 修改用户2
     * 
     * @param mcUser 用户2
     * @return 结果
     */
    @Override
    public int updateMcUser(McUser mcUser)
    {
        return mcUserMapper.updateMcUser(mcUser);
    }

    /**
     * 批量删除用户2
     * 
     * @param ids 需要删除的用户2主键
     * @return 结果
     */
    @Override
    public int deleteMcUserByIds(Long[] ids)
    {
        return mcUserMapper.deleteMcUserByIds(ids);
    }

    /**
     * 删除用户2信息
     * 
     * @param id 用户2主键
     * @return 结果
     */
    @Override
    public int deleteMcUserById(Long id)
    {
        return mcUserMapper.deleteMcUserById(id);
    }
}
